<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .father {
      width: 500px;
      height: 500px;
      background-color: pink;
    }

    .son {
      width: 250px;
      height: 250px;
      background-color: red;
    }
  </style>
</head>

<body>
  <div id="app">
    <div class="father" @click="father">
      父盒子
      <div class="son" @click="son">子盒子
        <a href="https://www.baidu.com" @click.prevent.stop>跳转</a>
      </div>
    </div>
  </div>
  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.min.js"></script>
  <script>
    const an = new Vue({
      el: '#app',
      data: {
      },
      methods: {
        father() {
          console.log('father');
        },
        son() {
          console.log('son');
        }
      }
    })
  </script>
</body>

</html>